#include "NullDriver.h"
#include "../../include/PowerLibraryEngine.h"

CNullDriver::CNullDriver(StartDriverParams *DrvParams):IDriver()
{
}

CNullDriver::~CNullDriver()
{
}

void CNullDriver::SetBackColor(CColor Color)
{
    BackColor = Color;
}


void CNullDriver::BeginRender()
{
}

void CNullDriver::EndRender()
{
	u32 ActualTime = TimeManager->GetActualTime();
	ActualFPS++;

	if (ActualTime - Time > 1000)
	{
		FPS = ActualFPS;
		ActualFPS = 0;
		Time = ActualTime;
	}
}

vector2dvpos CNullDriver::GetPositionIn2D(const vector2dvpos &Position)
{
	return vector2dvpos(0,0);
}

vPos CNullDriver::GetPositionIn2DX(vPos PosX)
{
	return 0;
}

vPos CNullDriver::GetPositionIn2DY(vPos PosY)
{
	return 0;
}
